<div class="mui-input-row mui-help form_item" id='form_{$form['id']}'>
    <i class="mui-ext-icon mui-icon-remove js-remove"></i>
    <i class="mui-ext-icon mui-icon-drag"></i>
    <span class="mui-label js-form-edit" data-id="{$form['id']}">{php echo empty($form['title'])?$form['placeholder']:$form['title']}</span>
    <input name="form_id[]" type="hidden" class="form-control form_id" value="{$form['id']}"/>
    <input name="form_fieldstype[{$form['id']}]" type="hidden" class="form-control js-fieldstype" value="{$form['fieldstype']}"/>
    <input name="form_displaytype[{$form['id']}]" type="hidden" class="form-control js-displaytype" value="{$form['displaytype']}"/>
    <input name="form_title[{$form['id']}]" type="hidden" class="form-control form_title" value="{$form['title']}" placeholder="{$form['placeholder']}"/>
    <div class="mui-help-info">
        <div class="mui-checkbox">
            <span class="mui-badge mui-badge-inverted">必填</span>            
            <input type="checkbox" {if $form['essential']==1}checked{/if} value="1" class="js-needFill">必填
            <input type="hidden" class="form_essential" name="form_essential[{$form['id']}]" VALUE="{$form['essential']}" />
        </div>
    </div>
    {if $form['displaytype']!=='' && strpos('012',$form['displaytype'])!==false}
    <div id="form_item_{$form['id']}" class='form_item_items' style="display:none">
    {if empty($form['items'])}
        {php $formitem['id']=random(32);$formitem['show']=1;$formitem['placeholder']='输入选项1'}
        {template 'activity/form_item'}
        {php $formitem['id']=random(32);$formitem['show']=1;$formitem['placeholder']='输入选项2'}
        {template 'activity/form_item'}
    {/if}
    {loop $form['items'] $k $formitem}
    {php $formitem['placeholder']='输入选项'.($k+1);}
    {template 'activity/form_item'}
    {/loop}
    </div>
    {/if}
</div>